#pragma once
#include "RCInterfaces.h"

using namespace RCDX11;
using namespace DirectX;

namespace RCDX11
{
	struct RCRectangle
	{
		float X;
		float Y;
		float Width;
		float Height;

		DECLDIR RCRectangle(void);
		DECLDIR RCRectangle(XMFLOAT4 dimensions);
		DECLDIR virtual ~RCRectangle(void);


		DECLDIR static RCRectangle Intersect(RCRectangle rectangle1, RCRectangle rectangle2);
		DECLDIR static void Intersect(RCRectangle rectangle1, RCRectangle rectangle2, OUT RCRectangle rectangle3);

		DECLDIR virtual bool Intersects(RCRectangle rectangle);

		DECLDIR virtual bool Contains(RCRectangle rectangle);

		DECLDIR static RCRectangle Union(RCRectangle rectangle1, RCRectangle rectangle2);
		DECLDIR static void Union(RCRectangle rectangle1,RCRectangle rectangle2, OUT RCRectangle rectangle3);
	
	};
}